Component({
    properties: {
        hoteldatas: {
            type: null
        },
        show: {
            type: null
        },
        start: {
            type: null
        },
        end: {
            type: null
        }
    },
    data: {
        language: ""
    },
    lifetimes: {
        attached: function() {
            var t = wx.getStorageSync("langIndex");
            this.setData({
                language: t.en
            });
        },
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        gotoHomePage: function(t) {
            var e = t.currentTarget.dataset.item;
            wx.navigateTo({
                url: "/packageC/hotel/HotelHome/HotelHome?id=" + e.id + "&city=" + e.address.city + "&start=" + (this.data.start ? this.data.start : "") + "&end=" + (this.data.end ? this.data.end : "")
            });
        },
        goChooseRoom: function(t) {
            var e = t.currentTarget.dataset.item;
            wx.navigateTo({
                url: "/packageC/hotel/HotelChooseRoom/HotelChooseRoom?id=" + e.id + "&start=" + (this.data.start ? this.data.start : "") + "&end=" + (this.data.end ? this.data.end : "")
            });
        }
    }
});